package com.example.friend.service;

import com.example.core.entity.PageDataInfo;
import com.example.friend.entity.DO.ExamDO;
import com.example.friend.entity.DTO.ExamQueryDTO;
import com.example.friend.entity.VO.ExamVO;

import java.util.List;

public interface IExamService {
    /**
     * 获取竞赛列表
     * @param examQueryDTO examQueryDTO
     * @return PageDataInfo<ExamVO>
     */
    PageDataInfo<ExamVO> list(ExamQueryDTO examQueryDTO);

    /**
     * 获取竞赛数据
     * @param examId examId
     * @return ExamDO
     */
    ExamDO getExam(Long examId);

    /**
     * 获取竞赛第一题
     * @param examId examId
     * @return questionId
     */
    String getFirstQuestion(Long examId);

    /**
     * 获取上一题
     * @param examId examId
     * @param questionId 当前题目id
     * @return questionId
     */
    String preQuestion(Long examId, Long questionId);

    /**
     * 获取下一题
     * @param examId examId
     * @param questionId 当前题目id
     * @return questionId
     */
    String nextQuestion(Long examId, Long questionId);
}
